function foo (a) {
    if (a === 1) return
    if (a === 2) return a
}
console.log(foo(2))
